#ifndef ASSEMBLELOG
#define ASSEMBLELOG

#include "common/baseeditor.h"
#include "al_additem.h"

namespace Ui {
class AssembleLog;
}

class AssembleLog : public BaseEditor
{
    Q_OBJECT

public:
    explicit AssembleLog(QWidget *parent = nullptr);
    ~AssembleLog();

    void generateMenu();
    void updateMonth();
    void updateDate();
    void newItem();
    void removeItem();
    void updateView();
    void keyPressEvent(QKeyEvent *event);
    void generateSummary();

private slots:
    void on_listView_doubleClicked(const QModelIndex &index);
    void on_month_currentTextChanged(const QString &text);

private:
    Ui::AssembleLog *ui;

    QString selectMonth;
    QString selectDate;
    QStringListModel *listModel;
};

#endif // ASSEMBLELOG
